# 用户关注表，记录用户关注的信息
from extensions import db

tb_user_follows = db.Table(
    "bbs_user_fans",
    db.Column(
        "follower_id", db.Integer, db.ForeignKey("bbs_user.id"), primary_key=True
    ),  # 粉丝id
    db.Column(
        "followed_id", db.Integer, db.ForeignKey("bbs_user.id"), primary_key=True
    ),  # 被关注人的id
)
# class UserFollowersORM(db.Model):
#     __tablename__ = 'bbs_user_fans'
#     follower_id = db.Column(db.Integer, db.ForeignKey('bbs_user.id'), primarykey=True)
#     followed_id = db.Column(db.Integer, db.ForeignKey('bbs_user.id'), primarykey=True)
